#include<iostream>
using namespace std;
int main(){
    char s[100]=" I like ,,,.. C++ programming!";
    int i=0,j,flag,back;
    char c[5]={' ',',','.','?','!'};
    while(s[i]!='\0'){
        flag=0;
        for(j=0;j<5;j++)
        {
            if(s[i]==c[j]){
                flag=1;
                break;
            }
        }
        if(flag==0){
            cout<<s[i];
        }
        else if(back==0){
            cout<<endl;
        }
        back=flag;
        i++;
    }
}
